package cn.getech.data.metadata;

import cn.getech.data.metadata.utils.SendEmailDelayUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling
@SpringBootApplication(scanBasePackages="cn.getech")
@EnableDiscoveryClient
@EnableFeignClients
public class DataMetaDataApplication {
    public static void main(String[] args) {
        System.setProperty("HADOOP_USER_NAME", "hdfs");
        SpringApplication.run(DataMetaDataApplication.class, args);
        SendEmailDelayUtil.init();
    }
}
